<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> 
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!-- menu start -->

<!-- 권한에 따라 페이지에서 보여주는 것을 달리하기 위해 authorize 태그를 사용할 수 있다. -->
<sec:authorize ifNotGranted="ROLE_USER">
	<table width="210" border="0" cellspacing="0" cellpadding="0" class="TP15 Right_box" height="100%" style="z-index: 1">
	<tr>
		<td valign="top" height="12%">
			<table>
				<tr>
					<td class="font12B_333333">&nbsp;<img src="<c:url value="/images/inc/ic_dot.gif"/>" width="9" height="9" align="absmiddle">  UMANJI 로그인 </td>
				</tr>
				<tr>
		        <td>
		        	<form action="<c:url value='/loginProcess'/>" method="POST">
			        <table width="195" border="0" cellspacing="0" cellpadding="0">
					<tr>
		        	    <td colspan="3" height="5px"></td>
					</tr>
					<tr>
						<td  valign="top"><input name="j_username" id="j_username" type="text" class="input_login" value="아이디" onclick="delval('j_username')"/></td>
		            	<td width="15"><input type="checkbox" name="_acegi_security_remember_me" class="check_box" /></td>
		            	<td>ID저장</td>
					</tr>
					<tr>
		            	<td class="TP3"><input name="j_password" id="j_password" type="password" class="input_login" value="비밀번호" onclick="delval('j_password')"/></td>
		            	<td colspan="2" class="TP3" align="center">
		            		<INPUT TYPE="image" SRC="<c:url value="/images/btn/btn_login.gif"/>" HEIGHT="18" WIDTH="46" BORDER="0" ALT="로그인">
		            	</td>
					</tr>
					</table>
					</form>
				</td>
		      	</tr>
		      	<tr>
			        <td class="TP5">
			        	<span class="font11B_313031"><a href="../user/terms" class="font11B_313031"> &nbsp;회원가입</a> </span><span class="font11_636563"> l <a href="../user/findId" class="font11_636563">아이디/비밀번호찾기</a></span>
					</td>
		      	</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td valign="top">
			<table>
				<tr>
		          <td class="tddcdcdc"></td>
		        </tr>
		      	<tr>
		          <td class="font12B_333333" class="dot01_bg LP15 "><br/>&nbsp;<img src="<c:url value="/images/inc/ic_dot.gif"/>" width="9" height="9" align="absmiddle"> UMANJI 공지사항 </td>
		        </tr>
		        
		        <tr>
		          <td height="3"></td>
		        </tr>
		        <tr>
		          <td height="18" class="LP3"><img src="<c:url value="/images/inc/ic_dot02.gif"/>" width="4" height="4" border="0" align="absmiddle"> <a href="#">공지사항이 들어가야 한다면....</a></td>
		        </tr>
		        <tr>
		          <td height="18" class="LP3"><img src="<c:url value="/images/inc/ic_dot02.gif"/>" width="4" height="4" border="0" align="absmiddle"> <a href="#">저의 생각입니다.</a></td>
		        </tr>
		        <tr>
		          <td height="18" class="LP3"><img src="<c:url value="/images/inc/ic_dot02.gif"/>" width="4" height="4" border="0" align="absmiddle"> <a href="#">조금 허전할꺼 같아서요 ^^</a></td>
		        </tr>
		        <tr>
		          <td height="18" class="LP3"><img src="<c:url value="/images/inc/ic_dot02.gif"/>" width="4" height="4" border="0" align="absmiddle"> <a href="#">우만지 사이트가 리뉴얼 되었...</a></td>
		        </tr>
			</table>
		</td>
	</tr>
	</table>
</sec:authorize>
<sec:authorize ifAnyGranted="ROLE_USER, ROLE_ADMIN">
	<!-- 로그인 화면 -->
	<table width="195" border="0" cellspacing="0" cellpadding="0" class="TP15 Right_box" align="center" style="padding-left: 5px" height="100%">
    <tr>
		<td valign="top" height="15%">
			<table>
		        <tr>
		          <td class="font12B_333333">
		          <!-- <img src="<c:url value="/images/inc/ic_dot.gif"/>" width="9" height="9" align="absmiddle"> -->
		          <img src="<c:out value="${user.profilePhoto}"/>" width="9" height="9" align="absmiddle">
		           <b><sec:authentication property="principal.username"/></b> 님 환영합니다.
		           </td>
		        </tr>
		        <tr>
		          <td class="TP10 BP5"><table width="123" border="0" cellspacing="0" cellpadding="0">
		            <tr>
		              <td class="pic_bg" style="padding:1 1 1 1px" valign="top"><img src="<c:url value="/images/inc/myphoto.gif"/>" width="118" height="119"></td>
		            </tr>
		          </table></td>
		        </tr>
		        <tr>
		          <td class="dot01_bg LP15 "><a href="#">레벨통장</a> <span class="font12_7bb515">(10)</span><br>
		            <a href="#">받은쪽지</a> <span class="font12_7bb515">(5)</span><br>
		            <a href="#">나의 포인트</a> <span class="font12_7bb515">(${user.point }만)</span><br>
		            <a href="#">나의 신뢰도</a> <span class="font12_7bb515">(${user.credibility })</span></td>
		        </tr>
		        <tr>
		          <td class="TP5">
		          <a href="<c:url value="/umj/user/update"/>"><img src="<c:url value="/images/btn/btn_modify.gif"/>" width="56" height="18" border="0"></a>
		          <a href="<c:url value="/logout"/>"><img src="<c:url value="/images/btn/btn_logout.gif"/>" width="56" height="18"></a>
		          </td>
		        </tr>		
			</table>
		</td>
	</tr>
    <tr>
		<td valign="top">
			<table>
				<tr>
		          <td class="tddcdcdc"></td>
		        </tr>
		        <tr>
		          <td class="font12B_333333"><br/><img src="<c:url value="/images/inc/ic_dot.gif"/>" width="9" height="9" align="absmiddle"> UMANJI 공지사항 </td>
		        </tr>
		        
		        <tr>
		          <td height="3"></td>
		        </tr>
		        <tr>
		          <td height="18" class="LP3"><img src="<c:url value="/images/inc/ic_dot02.gif"/>" width="4" height="4" border="0" align="absmiddle"> <a href="#">공지사항이 들어가야 한다면....</a></td>
		        </tr>
		        <tr>
		          <td height="18" class="LP3"><img src="<c:url value="/images/inc/ic_dot02.gif"/>" width="4" height="4" border="0" align="absmiddle"> <a href="#">저의 생각입니다.</a></td>
		        </tr>
		        <tr>
		          <td height="18" class="LP3"><img src="<c:url value="/images/inc/ic_dot02.gif"/>" width="4" height="4" border="0" align="absmiddle"> <a href="#">조금 허전할꺼 같아서요 ^^</a></td>
		        </tr>
		        <tr>
		          <td height="18" class="LP3" style="padding-left: 3px"><img src="<c:url value="/images/inc/ic_dot02.gif"/>" width="4" height="4" border="0" align="absmiddle"> <a href="#">우만지 사이트가 리뉴얼 되었...</a></td>
		        </tr>
			</table>
		</td>
	</tr>
      
      


      </table>
	<!-- 로그인 후 화면 끝 -->
</sec:authorize>




<!-- 


<div id="umanji_menu">
     <ul>
         <li><a href="ahah_1.html"><span>홈</span></a></li>
         <li><a href="ahah_2.html"><span>지역 검색</span></a></li>
         <li><a href="ahah_3.html"><span>중고거래</span></a></li>
         <li><a href="ahah_2.html"><span>일자리</span></a></li>
         <li><a href="ahah_3.html"><span>월세</span></a></li>
     </ul>
</div>
 -->
 
<!-- menu end -->